package aash.catalog.event;

import aash.utils.element.CatalogProperty;
import java.util.EventObject;

/**
 * .
 * @author Aashintan
 */
public class PropertyChangedEvent extends EventObject {
    /**
     * .
     */
    private static final long serialVersionUID = 2769800649827410755L;
    /**
     * the property key.
     */
    private final String propertyKey;
    /**
     * .
     */
    private final CatalogProperty property;

    /**
     * .
     * @param source the source of the event
     * @param stPropertyKey the key of the property changed
     * @param cpProperty the property changed
     */
    public PropertyChangedEvent(final Object source,
            final String stPropertyKey, final CatalogProperty cpProperty) {
        super(source);
        propertyKey = stPropertyKey;
        property = cpProperty;
    }

    /**
     * @return the propertyName
     */
    public final String getPropertyKey() {
        return propertyKey;
    }

    /**
     * @return the propertyValue
     */
    public final CatalogProperty getProperty() {
        return property;
    }
}
